package com.bytic.miaosha.service;

import com.bytic.miaosha.redis.KeyPrefix;

public interface RedisService {

    public <T> T get(KeyPrefix prefix, String key, Class<T> clazz);

    public <T> boolean set(KeyPrefix prefix, String key, T value);

    public boolean exists(KeyPrefix prefix, String key);

    public Long incr(KeyPrefix prefix, String key);

    public Long decr(KeyPrefix prefix, String key);

    public boolean delete(KeyPrefix prefix, String key);
}
